Optimal. Leaf size=344 \[ -\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {8 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {8 b d^2 \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} \Pi \left (2;\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.20, antiderivative size = 344, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 13, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.684, Rules used = {45, 5355, 12,
6853, 6874, 733, 435, 958, 430, 946, 174, 552, 551} \begin {gather*} -\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}+\frac {8 b d^2 \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} \Pi \left (2;\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e^2 x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}+\frac {8 b d \sqrt {1-c^2 x^2} \sqrt {\frac {c (d+e x)}{c d+e}} F\left (\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {d+e x}}-\frac {4 b \sqrt {1-c^2 x^2} \sqrt {d+e x} E\left (\text {ArcSin}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e x \sqrt {1-\frac {1}{c^2 x^2}} \sqrt {\frac {c (d+e x)}{c d+e}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 45
Rule 174
Rule 430
Rule 435
Rule 551
Rule 552
Rule 733
Rule 946
Rule 958
Rule 5355
Rule 6853
Rule 6874
Rubi steps
\begin {align*} \int \frac {x \left (a+b \csc ^{-1}(c x)\right )}{\sqrt {d+e x}} \, dx &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}+\frac {b \int \frac {2 (-2 d+e x) \sqrt {d+e x}}{3 e^2 \sqrt {1-\frac {1}{c^2 x^2}} x^2} \, dx}{c}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}+\frac {(2 b) \int \frac {(-2 d+e x) \sqrt {d+e x}}{\sqrt {1-\frac {1}{c^2 x^2}} x^2} \, dx}{3 c e^2}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}+\frac {\left (2 b \sqrt {1-c^2 x^2}\right ) \int \frac {(-2 d+e x) \sqrt {d+e x}}{x \sqrt {1-c^2 x^2}} \, dx}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}+\frac {\left (2 b \sqrt {1-c^2 x^2}\right ) \int \left (\frac {e \sqrt {d+e x}}{\sqrt {1-c^2 x^2}}-\frac {2 d \sqrt {d+e x}}{x \sqrt {1-c^2 x^2}}\right ) \, dx}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {\left (4 b d \sqrt {1-c^2 x^2}\right ) \int \frac {\sqrt {d+e x}}{x \sqrt {1-c^2 x^2}} \, dx}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}+\frac {\left (2 b \sqrt {1-c^2 x^2}\right ) \int \frac {\sqrt {d+e x}}{\sqrt {1-c^2 x^2}} \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {\left (4 b d^2 \sqrt {1-c^2 x^2}\right ) \int \frac {1}{x \sqrt {d+e x} \sqrt {1-c^2 x^2}} \, dx}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}-\frac {\left (4 b d \sqrt {1-c^2 x^2}\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {1-c^2 x^2}} \, dx}{3 c e \sqrt {1-\frac {1}{c^2 x^2}} x}-\frac {\left (4 b \sqrt {d+e x} \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 c e x^2}{-c^2 d-c e}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {-\frac {c^2 (d+e x)}{-c^2 d-c e}}}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}-\frac {\left (4 b d^2 \sqrt {1-c^2 x^2}\right ) \int \frac {1}{x \sqrt {1-c x} \sqrt {1+c x} \sqrt {d+e x}} \, dx}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}+\frac {\left (8 b d \sqrt {-\frac {c^2 (d+e x)}{-c^2 d-c e}} \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 c e x^2}{-c^2 d-c e}}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {8 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {\left (8 b d^2 \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {d+\frac {e}{c}-\frac {e x^2}{c}}} \, dx,x,\sqrt {1-c x}\right )}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {8 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {\left (8 b d^2 \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {1-\frac {e x^2}{c \left (d+\frac {e}{c}\right )}}} \, dx,x,\sqrt {1-c x}\right )}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \csc ^{-1}(c x)\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \csc ^{-1}(c x)\right )}{3 e^2}-\frac {4 b \sqrt {d+e x} \sqrt {1-c^2 x^2} E\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {\frac {c (d+e x)}{c d+e}}}+\frac {8 b d \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} F\left (\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c^2 e \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}+\frac {8 b d^2 \sqrt {\frac {c (d+e x)}{c d+e}} \sqrt {1-c^2 x^2} \Pi \left (2;\sin ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right )|\frac {2 e}{c d+e}\right )}{3 c e^2 \sqrt {1-\frac {1}{c^2 x^2}} x \sqrt {d+e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.91, size = 289, normalized size = 0.84 \begin {gather*} \frac {2 \left (a (-2 d+e x) \sqrt {d+e x}+b (-2 d+e x) \sqrt {d+e x} \csc ^{-1}(c x)+\frac {2 i b \sqrt {\frac {e (1+c x)}{-c d+e}} \sqrt {\frac {e-c e x}{c d+e}} \left ((c d-e) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )+(c d+e) F\left (i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )-2 c d \Pi \left (1+\frac {e}{c d};i \sinh ^{-1}\left (\sqrt {-\frac {c}{c d+e}} \sqrt {d+e x}\right )|\frac {c d+e}{c d-e}\right )\right )}{c^2 \sqrt {-\frac {c}{c d+e}} \sqrt {1-\frac {1}{c^2 x^2}} x}\right )}{3 e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.57, size = 410, normalized size = 1.19
method | result | size |
derivativedivides | \(\frac {-2 a \left (-\frac {\left (e x +d \right )^{\frac {3}{2}}}{3}+d \sqrt {e x +d}\right )-2 b \left (-\frac {\left (e x +d \right )^{\frac {3}{2}} \mathrm {arccsc}\left (c x \right )}{3}+\mathrm {arccsc}\left (c x \right ) d \sqrt {e x +d}+\frac {2 \left (d \EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) c +\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) c d -2 d \EllipticPi \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \frac {c d -e}{c d}, \frac {\sqrt {\frac {c}{c d +e}}}{\sqrt {\frac {c}{c d -e}}}\right ) c -\EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) e +\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) e \right ) \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c d +e}}\, \sqrt {\frac {-c \left (e x +d \right )+c d -e}{c d -e}}}{3 c^{2} \sqrt {\frac {c}{c d -e}}\, x \sqrt {\frac {c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}}{c^{2} e^{2} x^{2}}}}\right )}{e^{2}}\) | \(410\) |
default | \(\frac {-2 a \left (-\frac {\left (e x +d \right )^{\frac {3}{2}}}{3}+d \sqrt {e x +d}\right )-2 b \left (-\frac {\left (e x +d \right )^{\frac {3}{2}} \mathrm {arccsc}\left (c x \right )}{3}+\mathrm {arccsc}\left (c x \right ) d \sqrt {e x +d}+\frac {2 \left (d \EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) c +\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) c d -2 d \EllipticPi \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \frac {c d -e}{c d}, \frac {\sqrt {\frac {c}{c d +e}}}{\sqrt {\frac {c}{c d -e}}}\right ) c -\EllipticF \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) e +\EllipticE \left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d -e}}, \sqrt {\frac {c d -e}{c d +e}}\right ) e \right ) \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c d +e}}\, \sqrt {\frac {-c \left (e x +d \right )+c d -e}{c d -e}}}{3 c^{2} \sqrt {\frac {c}{c d -e}}\, x \sqrt {\frac {c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}}{c^{2} e^{2} x^{2}}}}\right )}{e^{2}}\) | \(410\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x\,\left (a+b\,\mathrm {asin}\left (\frac {1}{c\,x}\right )\right )}{\sqrt {d+e\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________